<extend name="Public:base" />
<block name="content">
	<form id="validation-form" method="post">
    <style type="text/css">
        li{
            list-style: none;;
        }
		table{
			text-align: center;
		}
		.mytableer tbody > tr > td{
			border: none;
		}
    </style>
<div class="table-responsive">
	<table class="table table-striped  table-bordered table-hover search-form" id="nav-table">
		<thead>
	    <th>
	    姓名：<input name="name" type="text" placeholder="" value="{:I('name')}" style="width:90px;" />
	    手机号：<input name="phone" type="text" placeholder="" value="{:I('phone')}" style="width:90px;" />
		身份证号码：<input name="num" type="text" placeholder="" value="{:I('num')}" style="width:160px;" />
				<a class="btn btn-primary btn-sm radius5" href="javascript:;" id="search" url="{:U('Master/bank')}">查询</a>
			</th>
		</thead>
	</table>
</div>
</form>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover"  id="mytable">
		<thead>
			<tr>
				<th align="center">头像</th>
				<th align="center">姓名</th>
				<th align="center">账号</th>
				<th align="center">身份证</th>
				<th align="center">银行卡数量</th>
				<th >操作</th>
			</tr>
		</thead>
		<tbody>
				<volist name="user" id="vo" key="k">
				<tr>
					<td><img src="{$vo.user_face}" style="width: 80px;height: 80px;"/></td>
					<td align="left">{$vo.id_name}</td>
					<td align="left">{$vo.phone}</td>
					<td align="left">{$vo.id_num}</td>
					<td align="left">{$vo.num}</td>
					<td>
						<a href="{:U('Master/bankDetail/num/')}/{$vo.id_num}" class="btn btn-xs btn-info radius5">查看</a>
					</td>
					</tr>
				</volist>
				<tr>
					<td colspan="20" class="page">{$page}</td>
				</tr>
		</tbody>
	</table>
</div>
</block>
<block name="javascript">
<script>
$(function() {

	$("#search").click(function () {
		var url = $(this).attr('url');
		var query = $('.search-form').find('input,select').serialize();
		query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
		query = query.replace(/^&/g, '');
		if (url.indexOf('?') > 0) {
			url += '&' + query;
		} else {
			url += '?' + query;
		}
		window.location.href = url;
	});

});
</script>
</block>